package com.example.javabasic.shejimoshi.celve.demo2;

import java.util.ArrayList;
import java.util.List;

//策略模式
public class Test {

    public static void main(String[] args) {
//        StrategyFactory factory = new StrategyFactory();
        ConcreteStrategyA a = new ConcreteStrategyA();
        ConcreteStrategyB b = new ConcreteStrategyB();
        List<String> list = new ArrayList<>();
        StrategyFactory.strategyMethod("a");
        StrategyFactory.strategyMethod("b");
    }
}
